package com.haima.ziliao.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;

/**
 * 我的收藏对象 p_shoucang
 * 
 * @author hima
 * @date 2024-11-07
 */
public class PShoucang implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long uid;

    /** 收藏内容 */
    @Excel(name = "收藏内容")
    private Long bid;

    /** 收藏类型 */
    @Excel(name = "收藏类型")
    private String sctype;

    /** 收藏日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("addTime")
    private Date addTime;


    @TableField(exist = false)
    private PZiliao ziliao;

    @TableField(exist = false)
    private PDuwu duwu;

    @TableField(exist = false)
    private PChanpin chanpin;

    @TableField(exist = false)
    private PLvxingshe lxs;

    public PChanpin getChanpin() {
        return chanpin;
    }

    public void setChanpin(PChanpin chanpin) {
        this.chanpin = chanpin;
    }

    public PLvxingshe getLxs() {
        return lxs;
    }

    public void setLxs(PLvxingshe lxs) {
        this.lxs = lxs;
    }

    public PDuwu getDuwu() {
        return duwu;
    }

    public void setDuwu(PDuwu duwu) {
        this.duwu = duwu;
    }

    public PZiliao getZiliao() {
        return ziliao;
    }

    public void setZiliao(PZiliao ziliao) {
        this.ziliao = ziliao;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }
    public void setSctype(String sctype) 
    {
        this.sctype = sctype;
    }

    public String getSctype() 
    {
        return sctype;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("bid", getBid())
            .append("sctype", getSctype())
            .append("addTime", getAddTime())
            .toString();
    }
}
